/**
 * @Title:
 * @Package
 * @Description: TODO
 * @author Shinelon
 * @date 2017/9/3 12:52
 * @version V1.0
 */
"use strict";
require('./index.css');
require('js/common/nav/index');
require('js/common/header/index');
require('util/slider/index');
var nav_side = require('js/common/nav-side/index');
var templateBanner = require('./template.string');
var shiqla = require('util/shiqlamall');

$(function() {
    // 渲染banner的html
    var bannerHtml  = shiqla.renderHtml(templateBanner);
    $('.banner-con').html(bannerHtml);
    // 初始化banner
    var $slider     = $('.banner').unslider({
        dots: true
    });
    // // 前一张和后一张操作的事件绑定
    // $('.banner-con .banner-arrow').click(function(){
    //     var forward = $(this).hasClass('prev') ? 'prev' : 'next';
    //     $slider.data('unslider')[forward]();
    // });
});